import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
  {
    path: '/',
    name: 'Codegen',
    component: () => import('../views/codegen'),
  },
  {
    path: '/datasource',
    name: 'Datasource',
    component: () => import('../views/datasource'),
  },
  {
    path: '/template',
    name: 'Template',
    component: () => import('../views/template'),
  },
  {
    path: '/tools',
    name: 'Tools',
    component: () => import('../views/tools'),
  },
]

const router = createRouter({
  history: createWebHashHistory(process.env.BASE_URL),
  routes,
})

export default router
